<?php
function vdp_front($image, $video, $unique_id) {
  return "

<script type=\"text/javascript\" src=\"plugins/vdp/assets/jquery.js\"></script>
<script type=\"text/javascript\" src=\"plugins/vdp/assets/popup_video.js\"></script>
<div id=\"simage$unique_id\" style=\"text-align:center;\"></div>

<script type=\"text/javascript\">
var uniqueId = " . $unique_id . " ;
var img = document.createElement('img');
img.src = '" . $image . "';
img.id = 'img'+uniqueId;
document.getElementById('simage$unique_id').appendChild(img);

  $('#simage$unique_id').popup({
    unique: uniqueId,
    video: '" . $video . "'
  });
</script>
";
}
?>
